<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title> {$pageTitle} </title>
		<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">

		<link href="/wx/ind/shop/shop.css?id={$timeend}" rel="stylesheet">

		<link href="http://cdn.bootcss.com/pace/1.0.2/themes/orange/pace-theme-center-simple.css" rel="stylesheet" />
		<link href="http://cdn.bootcss.com/ratchet/2.0.2/css/ratchet.min.css" rel="stylesheet">
		<link href="http://cdn.bootcss.com/ratchet/2.0.2/css/ratchet-theme-ios.min.css" rel="stylesheet">
	</head>

	<body>

		{include file="main.html"}

		{include file="item-detail.html"}

		{include file="cart.html"}

		{include file="order-list.html"}

	</body>
</html>

<script src="/static/js/lib/ratchet.js"></script>
<script src="/static/js/lib/fastclick.min.js"></script>

<script src="http://cdn.bootcss.com/moment.js/2.10.3/moment.min.js"></script>
<script src="http://cdn.bootcss.com/pace/1.0.2/pace.min.js"></script>
<script src="http://cdn.bootcss.com/underscore.js/1.7.0/underscore-min.js"></script>
<script src="http://cdn.bootcss.com/zepto/1.1.4/zepto.min.js"></script>

<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="/lib/js/wx-mock.js"></script>

<script>
var userSaved = {$userSaved};
var isDebug = {$wxDebug};
wx.config({
	debug: isDebug,
	appId: '{$appid}',
	timestamp: {$timestamp},
	nonceStr: '{$nonce}',
	signature: '{$signature}',

	jsApiList: [
		'chooseWXPay'
	]
});
</script>

{if $concatJs}
<script src="/wx/ind/shop/all.js?id={$timeend}"></script>
{else}
<script src="/static/js/yo.js"></script>
<script src="/static/js/yo-pages.js"></script>

<script src="/wx/ind/shop/main.js"></script>
<script src="/wx/ind/shop/order.js"></script>
{/if}

<script type="text/javascript">
Yo.isDebug = isDebug;
$(function(){
	YoPages.init();
});
</script>